#include "shm.hpp"
#include "fifo.hpp"

int main()
{
    Shm MUshm(MyShmPath, Id, User);
    char *shmaddr = (char *)MUshm.Addr();
    Fifo MUfifo(MyFifoPath, User);
    MUshm.Zero();
    if (MUfifo.OpenForWrite())
    {
        int i =0;
        while (true)
        {
            std::cout<<"输入共享内存的内容:"<<std::endl;
            std::cin>>shmaddr;
            const std::string tem = "wake up shm";
            MUfifo.WriteFifo(tem);
        }
    }
}
